package ipmsg.network;

import java.net.ServerSocket;
import java.net.Socket;

import ipmsg.IpmsgConstants;

public class FileDaemonServer extends Thread {
	ServerSocket ss;

	public void run() {
		try {
			this.ss = new ServerSocket(IpmsgConstants.DEFAULT_PORT);
			while (true) {
				System.out.println("idcomcn,while:");
				Socket s = this.ss.accept();
				System.out.println("idcomcn,socket:" + s);
				new Thread(new SendFileDeamon(s)).start();
			} // end while
		} catch (Exception e) {
		}
	}
}
